home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / arch / arm / plat-mxc / include / mach / irqs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-09-09  |  960 b   |  35 lines

  1. /*
  2.  *  Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
  3.  */
  4.  
  5. /*
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License version 2 as
  8.  * published by the Free Software Foundation.
  9.  */
  10.  
  11. #ifndef __ASM_ARCH_MXC_IRQS_H__
  12. #define __ASM_ARCH_MXC_IRQS_H__
  13.  
  14. #include <mach/hardware.h>
  15. extern void imx_irq_set_priority(unsigned char irq, unsigned char prio);
  16.  
  17. #define MXC_IRQ_TO_EXPIO(irq)    ((irq) - MXC_EXP_IO_BASE)
  18.  
  19. #define MXC_IRQ_TO_GPIO(irq)    ((irq) - MXC_GPIO_INT_BASE)
  20. #define MXC_GPIO_TO_IRQ(x)    (MXC_GPIO_INT_BASE + (x))
  21.  
  22. /* Number of normal interrupts */
  23. #define NR_IRQS        MXC_MAX_INTS
  24.  
  25. /* Number of fast interrupts */
  26. #define NR_FIQS        MXC_MAX_INTS
  27.  
  28. /*
  29.  * This function is used to get the AVIC Lo and Hi interrupts
  30.  * that are enabled as wake up sources to wake up the core from suspend
  31.  */
  32. void mxc_get_wake_irq(u32 * wake_src[]);
  33.  
  34. #endif /* __ASM_ARCH_MXC_IRQS_H__ */
  35.